Release 10.1A: OpenEdge Development:
Java Open Clients
Purposed property accessor methods for RunTimeProperties class and Connection objects
In addition to the general property accessor methods, you can access properties using individual property accessor methods. Every property has a pair of methods you can use to set and get the value of the property.
When calling these methods on the
RunTimePropertiesclass, use the class name to call the method. For example:
When calling these methods on a
Connectionobject, use the instance of the object to call the method. For example:
Where
ConnectObjis an instance of thecom.progress.open4gl.javaproxy.Connectionclass.Session methods
Table 7–2 lists the session property methods. For a detailed description of each property, see the "Alphabetical listing of properties" section.
Thread control methods
The AppServer can be accessed from a multi-threaded client. However, the AppServer itself is not multi-threaded. As a result, only one request is serviced at a time. If a method call is made from the client while another one is still running on the AppServer, the application can decide which of the following should happen:
The application can set the run-time properties to do either and can switch the setting at any time. The default is to throw an exception (
WaitIfBusy=false).The methods in Table 7–3 provide thread control to the Open Client Runtime. For a detailed description of each property, see the "Alphabetical listing of properties" section.
Table 7–3: Thread control methods Method Description/Property Sets PROGRESS.Session.waitIfBusy totrue. Sets PROGRESS.Session.waitIfBusy tofalse. ReturnsTRUEifsetWaitIfBusy()was called;FALSE, ifsetNoWaitIfBusy()was called.
Proxy server specification methods
You use proxy server specification methods if a Proxy Web server exists between the client and the Web server hosting the AppServer Internet Adapter (AIA).
The methods in Table 7–4 provide Proxy Web server support to a Java Open Client application. For a detailed description of each property, see the "Alphabetical listing of properties" section.
Secure Sockets Layer management methods
When using HTTPS to access the AppServer, you must supply digital certificates with your client application.
The methods in Table 7–5 provide digital certificate management to the Open Client application. For a detailed description of each property, see the "Alphabetical listing of properties" section.
Table 7–5: Secure Sockets Layer management methods Method Description setCertificateStore
(StringcertStoreList) getCertificateStore() setNoHostVerify(booleanverify) getNoHostVerify()
Tracing methods (RunTimeProperties only)
Tracing logs highlights of proxy execution, including data received by the client and data passed to the AppServer. The methods in Table 7–6 provide tracing functionality to the Open Client application. These methods apply to the
RunTimePropertiesclass only. (They do not apply toConnectionobjects.) For a detailed description of each property, see the "Relationship between the RunTimeProperties class and Connection objects" section.
Table 7–6: Tracing methods Method Description Sets these properties: Sets these properties: Sets these properties:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |